<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${pageContext.request.contextPath }/static/common/plugin/bootstrap-3.3.5/css/bootstrap.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"></script>
<title>Insert title here</title>
</head>
<body>
<!-- 课程名，所属课程，是否还有子课程，状态，备注 -->
<div style="margin:0 auto">
<form class="form-horizontal" action="${pageContext.request .contextPath}/course/CourseServlet?command=courseInsert" method="post">
	<div class="form-group">
			<label>课程名</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="inputEmail3"  placeholder="课程名" name="name">
			</div>
	</div>
	<!-- 这里要单独用个实体接收所有课程名的pid -->
	<div class="form-group" >
			<label>所属课程</label>
			<div class="col-sm-10">
				<select name="pId">
					<c:forEach items="${pIdList }" var="pIdList">
						<option value="${pIdList.id }">${pIdList.name }</option>
					</c:forEach>
				</select>
			</div>
	</div>
	<div>
		<label class="radio-inline">
		  <input type="radio" name="isLeaf" id="" value="1"> 有
		</label>
		<label class="radio-inline">
		  <input type="radio" name="isLeaf" id="" value="2"> 无
		</label>
	</div>
	<div class="radio">
		  <label class="radio-inline">
		  	<input type="radio" name="state" id="" value="1"> 有效
		  </label>
		  <label class="radio-inline">
		  	<input type="radio" name="state" id="" value="2"> 无效
		  </label>
	</div>
	<textarea class="form-control" rows="10" name="memo"></textarea>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-default">提交</button>
		</div>
	</div>
</form>
</div>
</body>
</html>